@layout("/common/_container.html",{js:["/assets/liuGoods/liuGoods_add.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>

<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="liuGoodsForm" lay-filter="liuGoodsForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
                <input name="id" type="hidden"/>
                <div class="layui-form-item">
                    <label class="layui-form-label">商品的名称<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="goodsName" name="goodsName" placeholder="请输入商品的名称" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">商品简称<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="goodsAbbreviation" name="goodsAbbreviation" placeholder="请输入商品简称" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">商品品牌<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="brandName" name="brandName" type="hidden">
                        <input id="brandId" name="brandId" placeholder="请输入商品品牌" type="text" class="layui-input" lay-verify="required" required autocomplete="off"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">型号<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="model" name="model" placeholder="请输入型号,如：袋.." type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">规格<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="specifications" name="specifications" placeholder="请输入规格,如：500g/罐" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">单位<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="unit" name="unit" placeholder="请输入单位：如：罐" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">重量<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="weight" name="weight" placeholder="请输入重量: 如 :1g" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">状态<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="state" name="state" placeholder="请输入状态:如 上架就是1，下架就是 0" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">设置售价<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="price" name="price" placeholder="请输入设置售价 : 如: 1" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">创建方式<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="establish" name="establish" placeholder="请输入创建方式: 如： 导入 " type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">商品备注<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="remarks" name="remarks" placeholder="请输入商品备注：如 :1.一架飞机" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <!--<div class="layui-form-item">
                    <label class="layui-form-label">父类商品id<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="pid" name="pid" placeholder="请输入父类商品id" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">父类商品 ids<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="pids" name="pids" placeholder="请输入父类商品 ids" type="text" class="layui-input" lay-verify="required" required/>
                    </div>
                </div>-->
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

@}